package com.aysafety.iotdataplatformweb.dao;

import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;

/**
 * @program: iotDataPlatform
 * @description: 微震
 * @author: ChengQi
 * @create: 2019-01-26 17:30
 **/
@Mapper
@Repository
public interface MicroseismDao {

    /** 
    * @Description: 插入实时数据
    * @Param: [params] 
    * @return: int 
    * @Author: ChengQi 
    * @Date: 2019/1/26 
    */ 
    public List<Map<String,Object>> queryRealMicroseism(Map<String, Object> params);

    /** 
    * @Description: 微震实时数量
    * @Param: [parram] 
    * @return: long 
    * @Author: ChengQi 
    * @Date: 2019/1/29 
    */ 
    long countRealMicroseism(Map<String, Object> parram);
    
    /** 
    * @Description: 频次相关特征参
    * @Param: [parram] 
    * @return: java.util.List<java.util.Map<java.lang.String,java.lang.Object>> 
    * @Author: ChengQi 
    * @Date: 2019/2/15 
    */ 
    List<Map<String, Object>> queryFrequency(Map<String, Object> parram);

    /**
    * @Description: 频次相关数据数量
    * @Param: [parram]
    * @return: long
    * @Author: ChengQi
    * @Date: 2019/2/15
    */
    long countFrequency(Map<String, Object> parram);

    Map<String, Object> querySys(Map<String, Object> parram);

    /** 
    * @Description: 能量偏差值、频次比
    * @Param: [parram] 
    * @return: java.util.List<java.util.Map<java.lang.String,java.lang.Object>> 
    * @Author: ChengQi 
    * @Date: 2019/3/8 
    */ 
    List<Map<String, Object>> queryEnergyDeviation(Map<String, Object> parram);

    /** 
    * @Description: 离散度查询
    * @Param: [parram] 
    * @return: java.util.List<java.util.Map<java.lang.String,java.lang.Object>> 
    * @Author: ChengQi 
    * @Date: 2019/3/12 
    */ 
    List<Map<String, Object>> queryDispersion(Map<String, Object> parram);

    List<Double> queryEnergyDeviation1(Map<String, Object> parram);

    List<Double> queryDispersion1(Map<String, Object> parram);

    /** 
    * @Description: 查询学习出来的临界值
    * @Param: [parram] 
    * @return: java.util.Map<java.lang.String,java.lang.Object> 
    * @Author: ChengQi 
    * @Date: 2019/3/21 
    */ 
    Map<String, Object> queryMicroseismWarningStudy(Map<String, Object> parram);

    /**
    * @Description: 查询综合预警
    * @Param: [parram]
    * @return: java.util.List<java.util.Map<java.lang.String,java.lang.Object>>
    * @Author: ChengQi
    * @Date: 2019/3/21
    */
    List<Map<String, Object>> queryWarning(Map<String, Object> parram);
}
